<?php


namespace app\app\validate;


use think\Validate;

class NavValidate extends Validate
{
    protected $rule = [
        'nav_name' => 'require',
        'url' => 'require'
    ];
    protected $message = [
        'nav_name.require' => '菜单名称不能为空',
        'url.require' => '跳转链接不能为空',
    ];
    protected $scene = [
        'add' => ['nav_name','url'],
        'edit' => ['nav_name','url'],
    ];

}